--文明矫饰
local wenmingjiaoshi = fk.CreateSkill {
    name = "mcdh_wenmingjiaoshi",
    attached_skill_name = "mcdh_wenmingjiaoshi_other"
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

wenmingjiaoshi:addEffect('prohibit',{
    prohibit_use = function(self, player, card)
        local  other = table.filter(Fk:currentRoom().alive_players,function(p)
            return p:hasSkill(self) and p:getMark("@@wenmingjiaoshi-turn") ==  0 and p ~= player end)
        return #other ~= 0 and card.trueName == "slash"
    end,
})

Fk:loadTranslationTable {
    ["mcdh_wenmingjiaoshi_prohibit"] = "文明矫饰",
    [":mcdh_wenmingjiaoshi_prohibit"] = "其他角色不能使用【杀】；其他角色的出牌阶段限一次，其可以令本回合本技能失效并与一名角色拼点，若其赢，其视为使用一张【杀】；没赢，则对方摸一张牌。",
    ["@@wenmingjiaoshi-turn"] = "文明矫饰失效",
}

return wenmingjiaoshi